Skip to content

Conversation

robsdedude
Copy link
Contributor

No description provided.

@robsdedude robsdedude force-pushed the rust-fun branch 4 times, most recently from b2101dd to eb9138a Compare August 13, 2025 09:31
@robsdedude robsdedude marked this pull request as ready for review August 14, 2025 06:28
@robsdedude robsdedude requested a review from Copilot August 14, 2025 06:29
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a comprehensive rewrite of the stub server in Rust, replacing the existing Python implementation. The rewrite provides improved performance through reduced startup times and polling intervals for the Rust implementation, while maintaining backward compatibility with the existing test infrastructure.

  • Adds a complete Rust implementation of the bolt stub server (boltstub_rs/)
  • Adds Docker build support for including the Rust binary in test environments
  • Implements conditional logic to use either Python or Rust stub servers based on environment variables

Reviewed Changes

Copilot reviewed 55 out of 57 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/stub/shared.py Adds Rust stub server support with conditional execution logic and updated parsing functions
tests/stub/routing/scripts/v3/router_adb_then_bdb.script Adds missing ELSE clause to handle edge cases in routing logic
tests/stub/driver_parameters/test_client_agent_strings.py Updates HELLO message parsing to use new as_parsed_dict helper
tests/stub/driver_parameters/test_bookmark_manager.py Updates BEGIN message parsing to use new as_parsed_dict helper
runner_image/Dockerfile Adds multi-stage build to compile and include Rust boltstub binary
runner.py Adds build context support for including Rust source in Docker builds
docker.py Extends build function to support build contexts for multi-stage Docker builds
boltstub_rs/* Complete Rust implementation including WebSocket support, PackStream serialization, Bolt protocol handling, and some test coverage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@robsdedude robsdedude enabled auto-merge August 14, 2025 08:51
@robsdedude robsdedude disabled auto-merge August 14, 2025 08:51
@robsdedude robsdedude merged commit 56d2573 into 6.x Aug 14, 2025
12 checks passed
@robsdedude robsdedude deleted the rust-fun branch August 14, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants